package com.blb.entity.page;

import lombok.Data;
import org.apache.ibatis.annotations.AutomapConstructor;

import java.util.Collection;

@Data
public class DataTablePage implements BlbPage {

    public DataTablePage() {
    }

    public DataTablePage(int recordsTotal, int recordsFiltered, Collection<?> data) {
        this.recordsTotal = recordsTotal;
        this.recordsFiltered = recordsFiltered;
        this.data = data;
    }

    private int draw;
    private int recordsTotal;
    private int recordsFiltered;
    private Collection<?> data;
}
